<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<form action="${ctxPath}/index/check">
    <input type="hidden" name="id" value="${verCode.id}">
    <label>编号：${verCode.id}</label>
    <label>名称：${verCode.fileName}</label><br><br>
    <label>图片：</label><img src="${ctxPath}/index/getPic?realName=${verCode.fileName}"><br><br>
    <label>验证码：${verCode.code}</label><br><br>
    <input type="radio" name="check1" value="1" checked>正确
    <input type="radio" name="check1" value="2">错误
    <button id="save" type="submit">保存</button>
</form>
<script src="${ctxPath}/static/theme/js/jquery.min.js"></script>
<script>
    $(function () {
        // 监听事件
        $('input[role=code]').bind('keyup', function (event) {
            if (event.keyCode == "13") {
                //回车执行查询
                $('#save').click();
            }
        });
        $('input[role=code]').focus();
    })

</script>
</body>
</html>